package o;

import com.huawei.appgallery.updatemanager.impl.fileinfo.dao.AppFileInfo;
import java.util.List;

public class dal {
    private static dal ˏ = null;
    private cfu ॱ = euc.ˊ().ʽ(AppFileInfo.TABLE_NAME);

    public static synchronized dal ˎ() {
        dal o_dal;
        synchronized (dal.class) {
            if (ˏ == null) {
                ˏ = new dal();
            }
            o_dal = ˏ;
        }
        return o_dal;
    }

    private dal() {
    }

    public void ˏ(AppFileInfo appFileInfo) {
        this.ॱ.ˋ("packageName_=?", new String[]{appFileInfo.ॱ()});
        this.ॱ.ˎ((cfr) appFileInfo);
    }

    public void ॱ(String str) {
        this.ॱ.ˋ("packageName_=?", new String[]{str});
    }

    public List<AppFileInfo> ˋ() {
        return this.ॱ.ˋ(AppFileInfo.class, null);
    }

    public List<AppFileInfo> ˋ(String str, int i) {
        return this.ॱ.ˋ(AppFileInfo.class, "packageName_=? and versionCode_=?", new String[]{str, String.valueOf(i)}, null, null);
    }
}
